]> dgit.raspbian.org Git - gnome-shell.git/commit
st: Rename and fix blur sampling calculation
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Thu, 17 Dec 2020 05:03:34 +0000 (02:03 -0300)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Thu, 17 Dec 2020 14:39:38 +0000 (11:39 -0300)
commitfe90da82b40da68e335cdb960a7b1d94400388be
treecbe463f360071a0dac267c72825b787f3c0fac85
parentec1b0990174be6e5a5859cde272ddda6931a62e3
st: Rename and fix blur sampling calculation

What the blur shader does is going n_steps in each direction (e.g. in case
we're in the horizontal pass that means left and right direction), sampling
the adjacent texels of the texel we're currently blurring. That means
n_steps actually is the amount of texels we're sampling in one direction,
not in both directions.

Make n_steps match what the blur shader does, and rename it to sampling_radius
to match what it really means. Do that for both st-theme-node-drawing.c and
st-private.c

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1542>
src/st/st-private.c
src/st/st-theme-node-drawing.c